package com.ihr360.insurance.entity.snapshot;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
public class CompanyBenefitSnapshot implements Serializable {

    private static final long serialVersionUID = -309720612998955357L;
    /**
     * 方案ID
     */
    @Column(nullable = false)
    private Long id;
    /**
     * 方案名称
     */
    @Column(nullable = false, length = 150)
    private String name;

    public CompanyBenefitSnapshot() {
    }

    public CompanyBenefitSnapshot(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}